<ul class="nav_ul" id="navbar" style="margin-left:0">
	<li style="margin-left:5%"></li>
	<li class="nav-item" id="logolink" style="overflow: hidden;transition: all 0.5s;">
		<a class="nav-link" href="/"><b>{{ OJ_NAME }}</b></a>
	</li>
	<li class="nav-item">
		<a class="nav-link" href="{% url 'vt1:indexPage' %}"><i class="iconfont icon-home"></i>首页</a>
		<span class="line"></span>
	</li>
	<li class="nav-item">
		<a class="nav-link" href="{% url 'vt1:problemList' %}"><i class="iconfont icon-home"></i>题库</a>
		<span class="line"></span>
	</li>
	<li class="nav-item dropdown">
		<a class="nav-link dropdown-toggle" href="" id="navbardrop" data-toggle="dropdown">
			<span style="position:relative">排名</span>
			<span class="line"></span>
		</a>
		<span class="line"></span>
		<div class="dropdown-content animated">
			<div><a class="dropdown-item" href="{% url 'vt1:userRank' 'score' %}">积分排名</a></div>
			<div><a class="dropdown-item" href="{% url 'vt1:userRank' 'hb' %}">壕币排名</a></div>
		</div>
	</li>
	{% if not request.session.user_id %}
	<li class="nav-item" style="float:right;margin-right:7%">
		<a class="nav-link" href="{% url 'vt1:register' %}">注册</a>
		<span class="line"></span>
	</li>
	<li class="nav-item" style="float:right;">
		<a class="nav-link" href="{% url 'vt1:login' %}">登陆</a>
		<span class="line"></span>
	</li>
	{% else %}
	<li class="nav-item dropdown" style="margin-right:7%;float:right">
		<a class="nav-link dropdown-toggle" href="" id="navbardrop" data-toggle="dropdown">
			<span style="position:relative">{{ request.session.user_id }}</span>
			<span class="line"></span>
		</a>
		<span class="line"></span>
		<div class="dropdown-content animated">
			<div><a class="dropdown-item" href="{% url 'vt1:userInfo' request.session.user_id %}">个人信息</a></div>
		</div>
	</li>
	{% endif %}
</ul>
<br>